#主武器被动技能【无暇守护】
scoreboard players add @a[tag=aijisi,scores={yingdunbing5=0,skGolden_shovel0=1..}] skPlayer 1
scoreboard players reset @a[tag=aijisi,scores={yingdunbing5=0,skGolden_shovel0=1..}] skGolden_shovel0
scoreboard players add @a[tag=aijisi,scores={yingdunbing5=0,skShouShang1=10..}] skPlayer 1
execute as @a[tag=aijisi,scores={yingdunbing5=0,skPlayer=5..}] at @s run function nw:yingxiong/1yingxiong/08dunbing/skill/1shouhu
#胸甲被动技能【无瑕之光照耀】
execute as @a[tag=aijisi,scores={skShouShang1=1..}] at @s run function nw:yingxiong/1yingxiong/08dunbing/skill/0beijia
#主武器被动技能【无暇守护】清空受伤分数
scoreboard players reset @a[tag=aijisi,scores={skPlayer=0,skShouShang1=0..}] skShouShang1

#胸甲被动技能【铁质重甲】
effect clear @a[tag=aijisi] levitation

#主武器被动技能【无暇补给】
execute as @a[tag=aijisi,scores={skPlayer=1,skKill=1..}] at @s run function nw:yingxiong/1yingxiong/08dunbing/skill/1buji

#副武器被动技能【无暇破碎】
execute as @a[tag=aijisi,scores={Shield1=1..}] at @s run function nw:yingxiong/1yingxiong/08dunbing/skill/2posui
#副武器主手技能【正面迎敌】
execute as @a[tag=aijisi] if data entity @s {SelectedItem:{id:"minecraft:shield"}} run effect give @s resistance 1 0 true

#限定技能【破釜沉舟】
execute as @a[tag=aijisi,scores={skEXBottle=1..}] at @s run function nw:yingxiong/1yingxiong/08dunbing/skill/3pofuchenzhou

execute as @a[tag=aijisi] at @s run title @s actionbar [{"text":"无暇守护","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 层数：","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"score":{"objective":"skPlayer","name":"@s"},"color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"/","color":"dark_red","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"5","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]
